#undef new
#include "Texture2DDX9.h"
#include "Texture2DDX10.h"

CTexture2D *CTexture2D::CreateTexture2D( )
{
    switch (g_ApiVersion)
    {
    case V_D3D9:
        return new CTexture2DDX9;
    case V_D3D10:
        return new CTexture2DDX10;
    }
    return NULL;
}